Verify GtkWidget invariants if G_ENABLE_DEBUG is defined
authorHavoc Pennington <hp@pobox.com>
Mon, 20 Dec 2010 17:46:51 +0000 (12:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Dec 2010 17:46:51 +0000 (12:46 -0500)
commit23ce44c9fecefb9c243c09709c8c1decfd1eb530
tree132063565f2611815961ee73c0d58e58953d42c8
parent28cc7baef0c2f4e80113395a48e562e427211f03
Verify GtkWidget invariants if G_ENABLE_DEBUG is defined

These checks are a bit expensive so require --enable-debug=yes.
gtk_widget_verify_invariants() checks invariants mentioned
in docs/widget_system.txt in particular, and can verify
others in the future.

Some of the invariants in docs/widget_system.txt don't
in fact hold right now, so those are #if 0'd in this
patch pending someone fixing either the docs or the code.
gtk/gtkwidget.c